/*************************************************************************
 * @file common.go
 * @auth wuwei
 * @created_time Fri 09 Nov 2018 01:53:30 PM CST
 * @brief 
 ************************************************************************/

package httplib

import (
    "sync/atomic"
)

const (
    error_ok                = 0
    error_failed            = -1
    error_running           = -2    //server is running
    error_no_method         = -3    //method not support
    error_not_find_group    = -4
)

var g_nHandle int32




func getNewHandle() int32 {
    return atomic.AddInt32(&g_nHandle, 1);
}


